# Maintainer: Michael Zuo <muh.muhten@gmail.com>
pkgname=minisign
pkgver=0.10
pkgrel=0
pkgdesc="Dead simple tool to sign files and verify signatures"
url="https://jedisct1.github.io/minisign/"
license="ISC"
arch="all"
makedepends="cmake libsodium-dev"
subpackages="$pkgname-doc"
source="https://github.com/jedisct1/minisign/archive/$pkgver/minisign-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
6a38500ed896c17b100bca47443f9806debe6e44d3ce09189f5f8913a41d4913434397175d1caa770fb0cc0918078dfc71c01b82b9bf919fdfba00434f4ce100  minisign-0.10.tar.gz
"
